//
//  FloatCanvas.h
//  AifudaoDrawer
//
//  Created by Ji Hu on 12-5-16.
//  Copyright (c) 2012年 爱辅导. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Diapatchable.h"

@protocol Scrollable <NSObject>

-(void) scroll:(CGPoint *)point state:(int) state;

@end

@class AifudaoDrawer;

@interface FloatCanvas : UIView
{
    UIBezierPath *mPath;
    CGPoint mLastPoint;
    CGFloat TouchOffset;
    
    id<Diapatchable> mDispatcher;
    id<Scrollable> mScroller;
//    id<Senderable> sender;
    
    int from;
}

@property (nonatomic,retain) UIBezierPath *mPath;
@property (nonatomic,assign) id<Diapatchable> mDispatcher;
//@property (nonatomic,retain) UIPanGestureRecognizer *mGestureRecognizer;
//@property (nonatomic,retain) id<Scrollable> mScroller;
//@property (nonatomic,retain) id<Senderable> sender;
@property (nonatomic,assign) int from;

//-(void) handleScrollGesture:(UIPanGestureRecognizer*)gestureRecognizer;
-(void) reset;
 
@end

